Profile    Mohammed Shiroz Status   Loading  
Logo
Share This

My cookies
blog and Updates

It's my personal blog and my post about what was my interested in. Not regularly. If you have any questions any discussion, I'm happy you get in touch with me, and try to answer as many as possible!

Blog
Let's See
Back to blog
Filter by:
Tags
//Article

Cookies vs Tokens: Where Should Your Web App Keep the Session?

Cookies vs Tokens: Where Should Your Web App Keep the Session?

Blog Summary

That login token in localStorage is readable by every script on your page. Here's the real trade-off between HttpOnly cookies and tokens, XSS vs CSRF, and how Laravel Sanctum handles SPAs and mobile apps.

Read more
  • 33
  • 38
  • 9

01. About Shiroz

Mohammed Shiroz

Hi, I'm Mohammed Shiroz, a software engineer and AI enthusiast from Sri Lanka who turns ideas into intelligent, real-world solutions. With over 9 years of hands-on experience, I currently lead real estate ERP development at Kate Group, a...

03.My Projects

04. Categories

Ready To Start Your Project ?

Get in Touch
Close